.BEST-Zg-general-section {
  font-size: min(2vw, 0.875rem);

  max-width: 100rem;
  margin: 2em auto;
  padding-inline: 2em;
  padding-block: 1em;

  display: flex;
  gap: 2em;
  justify-content: center;
  align-items: center;
}

@media screen and (min-width: 1600px) {
  .BEST-Zg-general-section {
    font-size: 1rem;
  }
}

@media only screen and (max-width: 768px) {
  .BEST-Zg-general-section {
    flex-wrap: wrap;
  }
}

.general-s__info,
.general-s__carousel {
  flex: 1 1 50%;
}

.general-s__info {
  border: solid 3px #faa519;
  border-radius: 1em;
  padding: 1.5em 2em;

  line-height: 1.4;
  text-align: center;

  display: flex;
  flex-wrap: wrap;
  gap: 1.5em;
  justify-content: center;
  align-items: center;
}

.general-s__info-link {
  font-size: 1.375em;
  font-weight: 700;

  text-decoration: none;
  color: var(--accent-clr);
}

.general-s__info-link:hover,
.general-s__info-link:focus {
  text-decoration: underline;
}

.general-s__carousel {
  height: 100%;
}

.carousel {
  position: relative;
  height: 20em;
  width: 70%;
  margin: 0 auto;
}

.carousel__image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* image will be cut instead of streached */

  /* pointer for lightbox */
  cursor: pointer;
}

.carousel__track-container {
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 1em;
}

.carousel__track {
  padding: 0;
  margin: 0;
  list-style: none;

  height: 100%; /* necessary cause js track.transform shrinks them to 0 */
}

.carousel__slide {
  position: absolute;
  top: 0;
  bottom: 0;

  width: 100%;
}

/* Next and previous buttons */
.carousel__button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%); /* move up 50% of button height */

  cursor: pointer;

  background: none;
  border-radius: 30%;
  border: none;

  transition: background-color 0.2s ease-in; /* animate background fade-in on hover */
}

.carousel__button:hover,
.carousel__button:focus {
  background-color: rgba(0, 0, 0, 0.3);
}

.carousel__prevBtn {
  left: -15%;
}

.carousel__nextBtn {
  right: -15%;
}

.carousel__button > svg {
  width: 2.5em;
  margin: 2em 0;
}

.carousel__button svg path {
  fill: var(--accent-clr);
}

/* Navigation buttons */
.carousel__nav {
  /* background-color: pink; */
  display: flex;
  justify-content: center;
  padding: 1em 0;
}

.carousel__indicator {
  border: none;
  border-radius: 50%;
  width: 1.5em;
  aspect-ratio: 1;
  background: var(--accent-clr);
  filter: brightness(50%);
  margin: 0 1em;

  /* animate background fade-in on hover */
  -moz-transition: filter 0.2s ease-in;
  -o-transition: filter 0.2s ease-in;
  -webkit-transition: filter 0.2s ease-in;
  transition: filter 0.2s ease-in;
}

.carousel__indicator:hover,
.carousel__indicator:focus {
  filter: brightness(90%);
}

.carousel__indicator.current-slide {
  filter: brightness(100%);
}

.carousel__indicator:not(.carousel__indicator.current-slide) {
  cursor: pointer;
}
